<!DOCTYPE html>
<html>

<head>
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <style>
        header {
            background-color: rgb(78, 78, 78);
            height: 80px;
        }

        header>div {
            width: 960px;
            height: 100%;
            margin: auto;
            text-align: right;

        }

        .logo {
            float: left;
            text-transform: capitalize;
            font-size: 40px;
            color: white;
            line-height: 80px;
            font-family: monospace;
        }

        header a {
            color: white;
            text-decoration: none;
            text-transform: capitalize;
        }

        .banner {
            height: 200px;
            background-color: lightgreen;
            padding: 5px 100px;
            text-align: right;
            line-height: 200px;

        }

        .banner ul {
            display: inline-block;
            line-height: normal;
            margin: 0;
            padding: 0;
            vertical-align: bottom;
        }

        .banner li {
            display: inline-block;
            border: 1px solid gray;
            padding: 2px 3px;
            background-color: rgb(255, 255, 255, 0.3);
            font-family: 'Courier New', Courier, monospace;
        }

        .banner li:nth-of-type(2) {
            padding-top: 10px;
            background-color: rgb(255, 255, 255, 0.6);
        }

        nav {
            height: 60px;
            border-bottom: 1px rgba(138, 128, 128, 0.3) solid;
        }

        nav ul {
            height: 100%;
            margin: 0;
            padding: 0;
            width: 960px;
            margin: auto;
            display: flex;
            align-items: flex-end;
        }

        nav li {
            display: inline-block;
            padding: 10px 20px;
            border: 1px rgba(138, 128, 128, 0.3) solid;
            border-top-left-radius: 15% 30%;
            border-top-right-radius: 15% 30%;
            border-bottom: 0;
            background-color: rgba(138, 128, 128, 0.3);
            text-transform: uppercase;
        }

        nav li:nth-of-type(1) {
            background-color: white;
            border-bottom: 1px white solid;
            margin-bottom: -1px;
        }

        main {
            width: 960px;

            margin: auto;
            min-height: calc(100vh - 80px - 210px  - 80px - 61px - 16px);
        }

        main > div {
            display: flex;
            align-items: flex-start;
            flex-wrap: wrap;
            margin: 0 -10px;
        }

        .contain > div {
            flex: 1 1 auto;
            padding: 40px;
            margin: 10px;
            border: 1px solid rgba(138, 128, 128, 0.3);
            text-align: center;
        }

        footer {
            background-color: rgb(78, 78, 78);
            color: white;
            text-align: center;
            line-height: 80px;
        }
    </style>
</head>

<body>
    <header>
        <div>
            <div class="logo">
                logo
            </div>
            <div class="link">
                <a href="#">github</a>
                <a href="#">register</a>
                <a href="#">login</a>
            </div>
        </div>
    </header>
    <div class="banner">
        <ul>
            <li>1</li>
            <li>2</li>
            <li>3</li>
            <li>4</li>
        </ul>
    </div>
    <nav>
        <ul>
            <li>home</li>
            <li>profile</li>
            <li>about</li>
        </ul>
    </nav>
    <main>
        <div class="contain">
            <div>content1</div>
            <div>content2</div>
            <div>content334tr</div>
            <div>content3asdg</div>
            <div>content3a</div>
            <div>content3zz</div>
            <div>content3xc</div>
            <div>c</div>
            <div>content3</div>
            <div>content3</div>
            <div>content3</div>
            <div>content3</div>
            <div>content3</div>
            <div>content3</div>
            <div>content3</div>
            <div>content3</div>
            <div>content3</div>
            <div>content3</div>
            <div>content3</div>
            <div>content3</div>

        </div>

    </main>
    <footer>
        @2018 ife.baidu.com
    </footer>
</body>

</html>